// --------------------------------------------------------------------------------------------------------------------
// <copyright file="HtmlConsoleListener.cs" company="">
//   
// </copyright>
// <summary>
//   Defines the HtmlConsoleListener type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

#region

using System;
using System.Diagnostics;

#endregion

namespace Expect.Core.Html
{
    internal class HtmlConsoleListener : TraceListener
    {
        public override void WriteLine(string Message)
        {
            Write(Message + "\n");
        }

        public override void Write(string Message)
        {
            Write(Message, string.Empty);
        }

        public override void Write(string Message, string Category)
        {
            Console.Write("T:" + Category + ": " + Message);
        }

        public override void WriteLine(string Message, string Category)
        {
            Write(Message + "\n", Category);
        }
    }
}